package com.duanzz.mapper;

import com.duanzz.entity.Emp;

import java.util.List;
import java.util.Map;

/**
 * @author duanzz
 * @description
 * @date 2020/11/17
 */
public interface IEmpMapper {

    //=============简单的 CRUD =============

    List<Emp> findAll();

    Emp findEmpById(Integer empno);

    int insertEmp(Emp emp);

    int updateEmpById(Emp emp);

    int deleteEmpById(Integer empno);

    List<Emp> findEmpByCondition(Emp emp);

    int findEmpCount();

    //============= 扩展的 CRUD=============

    List<Emp> findEmpByConditionLazyLoading(Emp emp);

    List<Emp> findEmpByDeptno(Integer deptno);



}
